home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / DINKDEMO / DC_TEXTE / DTEDITWI.H < prev    next >
Text File  |  1992-07-08  |  988b  |  51 lines

  1. /*
  2.     File:        DTEditWind.h
  3.  
  4.     Written by:    Mark Gross
  5.  
  6.     Copyright:    ⌐ 1992 by Applied Technical Software, all rights reserved.
  7.     Use at your own risk.
  8.  
  9. */
  10.  
  11.  
  12. #ifndef __DTEDITWIND__
  13. #define __DTEDITWIND__
  14.  
  15. #include "DScrollWindow.h"
  16.  
  17. class DTEditWind : public DScrollWindow
  18. {
  19. protected:
  20.  
  21.     TEHandle fDocText;
  22.         // a handy refrence to the TEditDocs fText field;
  23.         
  24. public:
  25.  
  26.     virtual Boolean Init(DDocument *doc, Boolean hasColorWindows);
  27.     virtual void    Draw(Rect *r);
  28.  
  29.     virtual void HandleKeyDown(EventRecord *theEvent);                    
  30.     virtual void HandleActivateEvt(EventRecord *theEvent);
  31.     virtual void HandleNullEvent(EventRecord *theEvent);
  32.     virtual void HandleOSEvent(EventRecord *theEvent);
  33.  
  34.  
  35.     virtual void    FocusOnContent(void);
  36.  
  37.  
  38.     void    SynchScrollBars(void);
  39.  
  40. protected:
  41.  
  42.     void    ScrollContents(short dh, short dv);
  43.  
  44.         
  45.     virtual void    DoContent(EventRecord* theEvent);
  46.     virtual    void    DoGrow(EventRecord *theEvent);
  47.     virtual    void    DoZoom(short partCode);
  48. };// end of class declaration
  49.  
  50.  
  51. #endif __DTEDITWIND__